package com.rp.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.rp.common.vo.PageData;
import com.rp.controller.RpController;
import com.rp.system.service.LoginLogService;

@Controller
@RequestMapping("/rp/system/loginLogMng")
public class LoginLogController extends RpController {

	@Autowired
	private LoginLogService llService;
	
	@ResponseBody
	@RequestMapping("removeAll")
	public String removeAll(){
		llService.removeAll();
		return SUCCESS;
	}
	
	@ResponseBody
	@RequestMapping("getLoginLogsByPage")
	public PageData getLoginLogsByPage(){
		return new PageData(llService.getLoginLogDao().getLoginLogByPage(pageParam));
	}
	
}
